#include <stdio.h>
#include <vector>
using namespace std;

int main() {
    int N = 0;
    scanf("%d", &N);

    /*if (N == 1) {
        printf("-1");
        return 0;
    }*/

    printf("%d\n", N);
    for (int i = 0; i < N; ++i)
        printf("1 ");

    return 0;
}
